package com.lb.activity;

import com.lb.activity.util.SnowflakeIdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
@tk.mybatis.spring.annotation.MapperScan("com.lb.activity.mapper")
public class WebServiceTextApplication {

    @Bean
    public SnowflakeIdWorker idWorker(){
        return new SnowflakeIdWorker(0,0);
    }

    public static void main(String[] args) {
        SpringApplication.run(WebServiceTextApplication.class, args);
    }

}

